package com.project.x;

import android.os.Message;
import java.util.ArrayList;

public class MessageThread {
    private int id;
    private String firstName;
    private String lastName;
    private String phoneNumber;
    private ArrayList<MessageEntry> messageEntryList; //Change my data structure if needed.

    public MessageThread() {
        messageEntryList = new ArrayList<MessageEntry>();
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public String getLastName() {
        return lastName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    public ArrayList<MessageEntry> getMessageEntryList() {
        return messageEntryList;
    }

    public void setMessageEntryList(ArrayList<MessageEntry> messageEntryList) {
        this.messageEntryList = messageEntryList;
    }

    public void addMessageEntryListElement(MessageEntry messageEntry){
        this.messageEntryList.add(messageEntry);
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }
}
